<div class="enbac-bound">
    <div id="advanced_search_template">
        <table cellpadding="4" width="100%" class="enbac-form-bound">
        <tr>
            <td width="41%"  class="enbac-form-title" style="font-size:18px"><a href="category.html?mod=zone"><strong>Quản trị Nhóm danh mục</strong></a> [ <a href="category.html"><strong>Quản trị Danh mục</strong></a> ]</td>
          <td width="19%" class="form_title_button"><a href="category.html?mod=zone&cmd=add"><img alt="" src="style/images/admin/new_f2.png" style="text-align:center" class="icon_cmd"/><br>
                Thêm mới</a></td>
            <td width="21%" class="form_title_button"><a href="javascript:void(0);" onclick="ListCategoryForm.cmd.value='delete';ListCategoryForm.submit();"><a href="category.html?cmd=del_cache">Xoá cache Danh mục</a></td>
        </tr></table>
    </div>
    <div class="form_bound">
        <div class="form_content">
            <table width="100%" cellpadding="0" cellspacing="0" border="1" style="border-collapse:collapse" bordercolor="#C3C3C3">
            <thead>
                <tr  valign="middle" bgcolor="#E6E6E6" style="line-height:20px;height:30px">
                    <th width="20" title="check_all" align="center">
                  <input type="checkbox" value="1" id="Category_all_checkbox" onClick="selectAllCheckbox(this.form,'Category',this.checked,'#FFFFEC','white');" style="cursor:pointer"></th />
                    <th width="74" align="center" >ID</th />
                  <th width="279" align="left" nowrap>T&ecirc;n	Nhóm danh	m&#7909;c</th>
                  <th align="center" nowrap>Tr&#7841;ng th&aacute;i</th>
                    <th width="117" align="left" nowrap>Các Danh mục</th>
                        <th width="113" align="center" valign="middle" nowrap>Vị trí</th>
                  <th width="73" align="center" valign="middle" nowrap>L&ecirc;n</th>
                        <th width="92" align="center" valign="middle" nowrap>Xu&#7889;ng</th>
              </tr>
              </thead>
                <tbody>
                {foreach from=$items item=items}
                     <tr bgcolor="{cycle values='#F7F7F7,#ffffff'}" valign="middle" style="cursor:hand;" id="Category_tr_{$items.id}">
                        <td align="center"><input name="selected_ids[]" type="checkbox" value="{$items.id}" onClick="select_checkbox(this.form,'Category',this,'#FFFFEC','white');" id="Category_checkbox" style="cursor:pointer"></td>
                        <td align="center">{$items.id}</td>
                       <td align="left" nowrap ><div style="padding:4px;"><a title="Click vào để sửa" href="{$items.edit_link}"><strong>{$items.name}</strong></a></div>{if $items.sub_cat}<div style="margin-left:10px; margin-top:5px; width:140px;" lang="{$items.id}"  class="list_top"><a href="javascript:void(0)"><img src="style/images/menu/arrow-down.gif" style="margin-left:5px" align="absmiddle"/>Hiển thị danh mục con</a></div>{/if}</td>
                       <td width="144" align="center" nowrap >
                          {$items.status}                    </td>
                    <td width="117" align="left" nowrap >
                    	<center>{$items.cats_total}</center>
                    	
                        {if $items.cats_total}
                        	<div style="margin:5px">
                        		{foreach from=$items.cats item=cat}
                        			<a href="{$cat.link}">{$cat.name}</a><br />
                                {/foreach}                                
                        	</div>
                        {/if} 
                    </td>
                        <td width="113" align="center" valign="middle" nowrap style="padding:4px">{$items.position}</td>
                       <td width="73" align="center" valign="middle" nowrap >{$items.up}</td>
                    <td width="92" align="center" valign="middle" nowrap>{$items.down}</td>				
              </tr>
                {/foreach}
                </tbody>
          </table>
        </div>
    </div>
</div>